//
//  BaseViewController.m
//  ChatDemo
//
//  Created by 度周末网络-王腾 on 15/12/22.
//  Copyright © 2015年 imac. All rights reserved.
//

#import "BaseViewController.h"

@interface BaseViewController () <UINavigationControllerDelegate,UIGestureRecognizerDelegate>

@end

@implementation BaseViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    [self configNavigationBar];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
}

-(void)configNavigationBar{
    [self.navigationController.navigationBar setTranslucent:NO];
    self.navigationController.interactivePopGestureRecognizer.delegate = self;
    [self.navigationController.navigationBar setBarTintColor:GLOBLE_NAVIGATION_COLOR];
    [self.navigationController.navigationBar setTitleTextAttributes:[NSDictionary dictionaryWithObjectsAndKeys:
                                                                     [UIColor whiteColor], NSForegroundColorAttributeName,
                                                                     [UIFont systemFontOfSize:18], NSFontAttributeName,
                                                                     nil]];
    self.view.backgroundColor = GLOBLE_BACKGROUND_COLOR;
}

// 隐藏额外的分割线
- (void)tableViewFooterLineHidden: (UITableView *)tableView{
    UIView *view = [[UIView alloc] init];
    view.backgroundColor = [UIColor clearColor];
    [tableView setTableFooterView:view];
}

@end
